﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpDemo._02_对象和类型
{
    public class Var
    {
        public static void Test()
        {
            var Person = new { Name = "张三", Age = 18 };
            Console.WriteLine("\n匿名类型测试");
            Console.WriteLine(Person.Name);
            Console.WriteLine(Person.Age);
        }
    }
}
